<template>
  <my-ref url="/open/hi2" ref="list" name="product" :query="query" :multi="true">

    <el-table-column
      prop="id"
      label="id"
      width="180">
    </el-table-column>
    <el-table-column
      prop="name"
      label="姓名">
    </el-table-column>


    <template slot="query">
      <kv label="名称">
        <el-input v-model="query.name"></el-input>
      </kv>
      <kv label="年龄">
        <el-input v-model="query.age"></el-input>
      </kv>
    </template>

  </my-ref>
</template>

<script>
  export default {
    data() {
      return {query: {name: "", age: ""}}
    },
    mounted() {
//      this.$refs["list"].loadData();
    }
  }
</script>
